﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainFrm.Master" AutoEventWireup="true" CodeBehind="PDBarIns.aspx.cs" Inherits="Ewts.PD.PDBarIns" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link rel="stylesheet" href="/css/tab4.css" type="text/css" />
         <link type="text/css" href="/css/tab1.css" rel="stylesheet" />
           <link type="text/css" href="/css/tab2.css" rel="stylesheet" />
   <style type="text/css">
         .instorClass
        {
	        height: 100%;
	        width: 100%;
	        margin: 0px;
	        padding-top: 1px;
	        padding-left: 1px;
	        border-top-style: none;
	        border-right-style: none;
	        border-bottom-style: none;
	        border-left-style: none;
        }
    
        .hiddenloadid{}
        .hiddencjoid{}
        .dropComeunDer{}
        .hiddenOper{}
        .hiddenInSid{}
        .HidPostion{}
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="EwtsConext" runat="server">
    <input type="hidden" id="hidgraphic" runat="server" class="hidgraphic" /><!-- 添加隐藏控件，保存当前登录者处理地 为库位筛选做条件参数   2013.05.24  Anling  -->
    <input type="hidden" id="hidintype" runat="server" class="hidintype" />
        <input type="hidden" id="hidInDepart" value="" class="hidInDepart" runat="server" />
        <input type="hidden" id="hidOutDepart" value="" class="hidOutDepart" runat="server" />
        <input type="hidden" id="hidInstype" class="hidInstype" value="F" runat="server" />
    <table id="tabbInfo" style="width:1300;">
        
        <tr>
            <td style=" text-align:right; height:25px; width:80px;">
                LoadNum：
            </td>
            <td>
                <input type="text" name="textfield" id="inputLoadNum" disabled="disabled" class="inputLoadNum" runat="server" />
            </td>
            <td style=" text-align:right; height:25px; width:80px;">
                出库编号：
            </td>
            <td>
                <input type="text" id="txtSrcOutSid" class="input" disabled="disabled" runat="server" />
            </td>
            <td style=" text-align:right; height:25px;">
                客户名称：
            </td>
            <td colspan="3">
              <input id="txtcum" runat="server" disabled="disabled" />
            </td>
           <td>已称重量</td>
           <td>
            <span runat="server" id="spanCurNwt" class="tdCurNwt"></span>
          
           </td>
           <td style=" text-align:right; height:25px; ">财务结算月：</td>
            <td>
               <asp:DropDownList ID="dropYear" CssClass="dropYear" runat="server">
               
                </asp:DropDownList>
                <asp:DropDownList ID="dropMonth" CssClass="dropMonth" runat="server">
                    <asp:ListItem>01</asp:ListItem>
                    <asp:ListItem>02</asp:ListItem>
                    <asp:ListItem>03</asp:ListItem>
                    <asp:ListItem>04</asp:ListItem>
                    <asp:ListItem>05</asp:ListItem>
                    <asp:ListItem>06</asp:ListItem>
                    <asp:ListItem>07</asp:ListItem>
                    <asp:ListItem>08</asp:ListItem>
                    <asp:ListItem>09</asp:ListItem>
                    <asp:ListItem>10</asp:ListItem>
                    <asp:ListItem>11</asp:ListItem>
                    <asp:ListItem>12</asp:ListItem>
               
                </asp:DropDownList>            </td>

        </tr>
        <tr>
            <td  style=" text-align:right; height:25px; width:80px;">
               入库状态：
            </td>
            <td> 
                <input type="text" runat="server" id="txtFlag" disabled="disabled" class="txtFlag" value="未确认" />
               
            </td>
            <td style=" text-align:right; height:25px; width:80px;"> 入库编号：
            </td>
            <td>
                <input type="text" runat="server" id="txtin" disabled="disabled" class="txtIn" />
            </td>
            <td style=" text-align:right; height:25px; width:80px;">
                入库时间：
            </td>
            <td>
              <label id="labInDate"></label>  
            </td>
           
            <td style="text-align:center;"><input type="checkbox" id="chkInStr" />全单锁定</td>
           <td>
           </td>
           <td>出库单总重量</td>
           <td>  <span runat="server" id="spanTotal" class="tdTotal"></span></td>
           <td>盘库误差</td>
           <td>  
              <input type="hidden" value="0" id="hidMec"/>
                <span id="spanMec">
                        <input id="txtMechanerr" value="0.00" class="txtMechanerr" disabled="disabled" runat="server" />
                        <input type="button" onclick="javascript:changemecweight()" id="btnMec" value="编辑" />
                        <input type="button" onclick="javascript:cancelnwt()" id="btnCancel" disabled="disabled" value="放弃" />
                </span>
           </td>
        </tr>
    </table>

    <div class="tab1">
	<h1>分类汇总</h1>
    <!--一个表单-->
        <table border="1" cellpadding="0" id="tabF" cellspacing="0">
        

         <tr>            
            <th scope="col">序号</th>
            <th scope="col">物品编码</th>
            <th scope="col">物品名称</th>
            
            <th scope="col">毛重</th>
      
            <th scope="col">净重</th>
            
            <th scope="col">数量</th>
            <th scope="col">废物编码</th>
            <th scope="col">废物类型</th>
            <th scope="col">联单号</th>
            <th scope="col">备注</th>
            <th scope="col">操作</th>
         </tr>
        <tr>
            <td></td>
            <td>
                <input type="text" name="textfield" id="txtungc" style="width:120px;" />
                <input id="hidungdid" value="0" type="hidden" />
            </td>
            <td>
                <input type="text" name="textfield" id="txtunga" style="width:130px;" />&nbsp;&nbsp;&nbsp;
            </td>
            <td style="width:35px;">
                 <input type="text" name="textfield" id="txtungwt" style="width:50px" />
              
            </td>
            <td>
                <input type="text" name="textfield" id="txtunnwt" style="width:50px" />
            </td>
            <td>
                <input type="text" name="textfield" id="txtunqty" style="width:50px" />
            </td>
            <td>
                <input type="text" name="textfield" id="txtunhw" style="width:120px" />
                <input id="hidunHwid" type="hidden" value="0" />
            </td>
            <td>
                 <label id="lblunHwType" style="width:130px;" ></label>
            </td>
            <td style="width:40px">
                <input type="text" name="textfield" id="tdunldno" style="width:60px" />
                
            </td>
            <td>
                <input type="text" id="tdunmemo" />
              
            </td>
 
            <td>
                <input id="hid_unid" type="hidden" value="0" class="hid_unid" />
                <input type="button" id="btnunprocessadd" value="插入"/> 
            </td>
        </tr>
        
      <asp:Repeater ID="reptun" runat="server">
        <ItemTemplate>
        <tr>
            <td>
                <%# Container.ItemIndex + 1 %>
            </td>
            <td><%# Eval("GoodsCode")%></td>
            <td><%# Eval("GoodsName")%></td>
            <td><%# Eval("gwt")%></td>
            <td><%# Eval("nwt")%></td>
            <td><%# Eval("qty")%></td>
            <td><%# Eval("rubbishcode")%></td>
            <td><%# Eval("rubbishtype")%></td>
            <td><%# Eval("continNo")%></td>
            <td><%# Eval("remark")%></td>
            <td><img src='/images/jian.png' alt='<%# Eval("id") %>'  onclick='javascript:unDelClick(this)'  width='16' height='17' class='jian'/></td>
            <td> 
                <img src='/images/icons/button_update.gif' alt='<%# Eval("id") %> ' onclick='javascript:updateUnClick(this)' height='17' class='update'/>
                <input id="hid_<%# Eval("id") %>" type="hidden" value='<%# Eval("id") %>' />    
            </td>

               </tr> 
        </ItemTemplate>
      </asp:Repeater>
   
    </table>
    <div >
    		&nbsp;&nbsp;&nbsp;
    		</div>
    <div class="align"></div>
</div>


<div class="tab1">
	<h1>入库</h1>
    <!--一个表单-->
        <input type="hidden" id="hidLoadID" value="0" class="hiddenloadid" runat="server" />
        <input type="hidden" id="hidCJOID" value="0" class="hiddencjoid" runat="server" />
        <input type="hidden" id="hidInStoID" value="0" class="hiddenInSid" runat="server" />
        <input type="hidden" id="hidoutparID" value="0" class="hiddenParSid" runat="server" />
        <input type="hidden" id="HiddenOper" value="0" class="hiddenOper"  runat="server" />
        <input type="hidden" id="HidStatus" value="0"   class="HidStatus" runat="server" />
        <input type="hidden" id="HidPostion" value="0" class="HidPostion"/>
         <input type="hidden" id="HidVLoad" value="0" class="HidVLoad" runat="server"/>
         <input type="hidden" id="HidUnInCount" value="0" />
         <input type="hidden" id="HidBarCount" value="0" />
         <input type="hidden" id="goodsid" value="0" />
         
        <table border="1" cellpadding="0" id="tab" cellspacing="0">
        

         <tr>            
            <th scope="col">序号</th>
            <th scope="col">物品编码</th>
            <th scope="col">物品名称</th>
            
            <th scope="col">毛重</th>
            <th scope="col">皮重1</th>
            <th scope="col">皮重2</th>
            <th scope="col">净重</th>
            <th scope="col">箱数</th>
            <th scope="col">数量</th>
            <th scope="col">废物编码</th>
            <th scope="col">废物类型</th>
            <th scope="col">归类</th>
            <th scope="col">箱号</th>
            <th scope="col">库位</th>
            <th scope="col">入库时间</th>
             <th scope="col">条形码</th>
             <th scope="col">锁定</th>
                    <th></th>
            <th></th>
<th></th>
        </tr>
        <tr>
            <td></td>
            <td>
                <input type="text" name="textfield" id="txtgc" style="width:120px;" />
                <input id="hidgdid" type="hidden" value="0" />
            </td>
            <td>
                <input type="text" name="textfield" id="txtgn" style="width:130px;" />
            </td>
            <td style="width:35px;">
                 <input type="text" name="textfield" id="txtgwt" style="width:50px" />
                <label id="dropt" style="width:35px; display:none;"></label>
            </td>
            <td>
                <input type="text" name="textfield" id="txttare1" value="0" style="width:50px" />
            </td>
            <td>
               <input type="text" name="textfield" id="txttare2" value="0" style="width:50px" />
            </td>
            <td>
               <label id="txtnwt"></label> 
            </td>
            <td>
                <input type="text" name="textfield" id="txtBoxCount" style="width:50px" />
            </td>
            <td style="width:40px">
                <input type="text" name="textfield" id="txtqty" style="width:40px" />
                
            </td>
            <td>
                <input type="text" style="width:120px;" id="txthw" />
                <input id="hiduHwid" value="0" type="hidden" style="width:130px;" />
                
            </td>
            <td>
                <label id="lblHwType"></label> 
            </td>
            <td>
                <input type="text" style="width:80px;" id="txtcomeunder" />
                
                
            </td>
            <td>
                <input type="text" name="textfield" id="txtpn" style="width:60px" />
            </td>
            <td>
                <input type="text" name="textfield" id="txtsid" style="width:60px" />
            </td>
            <td>
                <label id="lblInDate"></label>
            </td>
            <td>
                <label id="lblBarcode" style="width:220px;"></label>
            </td>
            <td>
                <input type="checkbox" id="chkIsLock" />
            </td>
            <td></td>
            <td>
                <input type="button" id="btnSaveBarcode" value="插入"/>
            </td>
            <td></td>
        </tr>
      <asp:Repeater ID="reptin" runat="server">
        <ItemTemplate>
        <tr>
            <td><%# Container.ItemIndex + 1 %></td>
            <td><%# Eval("goodscode")%></td>
            <td><%# Eval("goodsname")%></td>
            <td><%# Eval("gwt")%></td>
            <td><%# Eval("tare1") %></td>
            <td><%# Eval("tare2") %></td>
            <td class="clsnwt"><%# Eval("nwt") %></td>
            <td><%# Eval("boxcount")%></td>
            <td><%# Eval("qty") %></td>
            <td><%# Eval("rubbishcode")%></td>
            <td><%# Eval("rubbishtype")%></td>
            <td><%# Eval("comeunder")%></td>
            <td><%# Eval("packageno")%></td>
            <td><%# Eval("stroageNo")%></td>
            <td><%# Eval("createdate")%></td>
            <td><%# Eval("barcodevalue")%></td>
            <td><input type="checkbox" class="flase" title="<%# Eval("id")%>"  <%# GetIsLock(Eval("isLocak").ToString())%> />锁定 </td>
            <td><img src='/images/jian.png' alt='<%# Eval("id") %> ' onclick='javascript:delClick(this)' width='16' height='17' class='jian'/></td>
            <td> <img src='/images/icons/button_update.gif' alt='<%# Eval("id") %> ' onclick='javascript:updateClick(this)' height='17' class='update'/></td>
            <td><a href='/Storage/BarcodeImg.aspx?barCodeID=<%# Eval("id") %>' target="_blank">条码重打</a></td>   
        </tr>
        </ItemTemplate>
      </asp:Repeater>
       
    </table>
    <div >
    		<asp:Button ID="btnSave" runat="server" Text="提交" onclick="btnSave_Click" />&nbsp;&nbsp;&nbsp;
    		<asp:Button ID="btnCanel" runat="server" Text="取消" onclick="btnCanel_Click"/>
    </div>
    <div class="align"></div>
</div>
<script type="text/javascript" src="/js/PDBarIns.js"></script>
<script type="text/javascript">
    getNwtCur();
</script>
</asp:Content>
